<?php

namespace Drupal\shusy_topic\ViewsController\handler\field;

use Drupal\shusy_topic\ViewsController\Traits\ShusyTopicStatusTrait;
use views_handler_field;

class ShusyTopicStatusViewsField extends views_handler_field {

  use ShusyTopicStatusTrait;

  public function render($values) {
    $value = $this->get_value($values);
    $options = $this->getStatusOptions();
    return isset($options[$value]) ? $options[$value] : '';
  }
}
